package com.haolijun.eecms.controller.form;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @ClassName InsertRepairsForm
 * @Description TODO
 * @Author hljstart
 * @Date 2023/3/12 18:21
 * @Version 1.0
 */
@Data
public class InsertRepairsForm {

    @NotNull(message = "facilityId不能为空")
    @Min(value = 1,message = "id最小为1")
    @Schema(description = "设备id")
    private Integer facilityId;

    @NotNull(message = "amount不能为空")
    @Range(min = 1, max = 99999,message = "amount必须在1~99999之间")
    private Integer amount;

    @Schema(description = "维修描述")
    private String desc;

    @Schema(description = "上传图片地址")
    private String[] images;



}
